package com.heima.feign;

import com.heima.apis.user.IUserClient;
import com.heima.model.user.pojos.ApUser;
import com.heima.user.mapper.ApUserMapper;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class UserClient implements IUserClient {

    @Resource
    private ApUserMapper apUserMapper;

    @PostMapping("/api/v1/apUser/add")
    public Integer addUser(ApUser apUser) {
        int insert = apUserMapper.insert(apUser);
        return insert;
    }
}
